# Contributor: Orson Teodoro <orsonteodoro@hotmail.com>
# Maintainer: Orson Teodoro <orsonteodoro@hotmail.com>

pkgname=oh-my-zsh
pkgver=0_git20180122
pkgrel=1
pkgdesc="A delightful community-driven framework for managing your zsh \
configuration that includes plugins and themes."
url="https://ohmyz.sh/"
arch="noarch"
license="MIT"
depends="zsh powerline-extra-symbols"
subpackages="$pkgname-doc"
options="!check" # no upstream tests
_gitrev="37c2d0ddd751e15d0c87a51e2d9f9849093571dc"
install="$pkgname.post-install $pkgname.post-upgrade"
source="$pkgname-$pkgver.zip::https://github.com/robbyrussell/$pkgname/archive/$_gitrev.zip
	install-path.patch"
builddir="$srcdir/"ohmyzsh-$_gitrev

package() {
	install -d "$pkgdir"/usr/share/oh-my-zsh/ \
		"$pkgdir"/usr/share/doc/$pkgname/
	chmod 755 $(find . -type d)
	mv * "$pkgdir"/usr/share/oh-my-zsh/
	install -t "$pkgdir"/usr/share/doc/$pkgname/ \
		"$pkgdir"/usr/share/oh-my-zsh/README.md
}

sha512sums="a463595e15fe0cbe23d48bab1366032db2446305e7d30410b258ba4c7109bdbd35e366026215a0047383b449121be7a3872b1abb8d4fbd4ced4dcdad29147b06  oh-my-zsh-0_git20180122.zip
56bcb688489dcf74ba09a2924bd029786273781cf801c990f4ac2ccf53e4d54143f6c59ff49d0fa11189e07f16665ab7329dead0b9853da7bf1480caa419bf15  install-path.patch"
